#include "EyeDropper.h"


void EyeDropper::mousePressEvent(QMouseEvent* event, PaintArea* ourImage)
	{
			ourImage->setLastPoint(event ->pos());                      
			QRgb pick = ourImage->getImage()->pixel(ourImage->getLastPoint());
			QColor color(pick);
			PaintBrush::brushColor = color;
}